﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_Exam_Signed 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_Exam_Signed : Entity
    {
        public TB_Exam_Signed() : base("TB_Exam_Signed")
        {
            this._SignedID = Guid.NewGuid().ToString();
            this._CreateTiime = DateTime.Now;
            this._State = 1;
        }

        #region Model
        private string _SignedID;
        private string _ExamYear;
        private string _GroupNO;
        private string _SignUpStudentsSpecialityID;
        private string _EntretenimientohID;
        private string _LotNO;
        private DateTime? _CreateTiime;
        private string _Remark;
        private int? _State;
        private DateTime? _SignedTime;
        /// <summary>
        /// 主键
        /// </summary>
        public string SignedID
        {
            get { return _SignedID; }
            set
            {
                this.OnPropertyValueChange(_.SignedID, _SignedID, value);
                this._SignedID = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 分组编码
        /// </summary>
        public string GroupNO
        {
            get { return _GroupNO; }
            set
            {
                this.OnPropertyValueChange(_.GroupNO, _GroupNO, value);
                this._GroupNO = value;
            }
        }
        /// <summary>
        /// 报考专业主键
        /// </summary>
        public string SignUpStudentsSpecialityID
        {
            get { return _SignUpStudentsSpecialityID; }
            set
            {
                this.OnPropertyValueChange(_.SignUpStudentsSpecialityID, _SignUpStudentsSpecialityID, value);
                this._SignUpStudentsSpecialityID = value;
            }
        }
        /// <summary>
        /// 考务编码
        /// </summary>
        public string EntretenimientohID
        {
            get { return _EntretenimientohID; }
            set
            {
                this.OnPropertyValueChange(_.EntretenimientohID, _EntretenimientohID, value);
                this._EntretenimientohID = value;
            }
        }
        /// <summary>
        /// 抽签号
        /// </summary>
        public string LotNO
        {
            get { return _LotNO; }
            set
            {
                this.OnPropertyValueChange(_.LotNO, _LotNO, value);
                this._LotNO = value;
            }
        }
        /// <summary>
        /// 抽签时间
        /// </summary>
        public DateTime? CreateTiime
        {
            get { return _CreateTiime; }
            set
            {
                this.OnPropertyValueChange(_.CreateTiime, _CreateTiime, value);
                this._CreateTiime = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            get { return _Remark; }
            set
            {
                this.OnPropertyValueChange(_.Remark, _Remark, value);
                this._Remark = value;
            }
        }
        /// <summary>
        /// 状态(1签到,0进入排队表)
        /// </summary>
        public int? State
        {
            get { return _State; }
            set
            {
                this.OnPropertyValueChange(_.State, _State, value);
                this._State = value;
            }
        }
        /// <summary>
        /// 签到时间
        /// </summary>
        public DateTime? SignedTime
        {
            get { return _SignedTime; }
            set
            {
                this.OnPropertyValueChange(_.SignedTime, _SignedTime, value);
                this._SignedTime = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.SignedID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.SignedID,
                _.ExamYear,
                _.GroupNO,
                _.SignUpStudentsSpecialityID,
                _.EntretenimientohID,
                _.LotNO,
                _.CreateTiime,
                _.Remark,
                _.State,
                _.SignedTime};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._SignedID,
                this._ExamYear,
                this._GroupNO,
                this._SignUpStudentsSpecialityID,
                this._EntretenimientohID,
                this._LotNO,
                this._CreateTiime,
                this._Remark,
                this._State,
                this._SignedTime};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._SignedID = DataUtils.ConvertValue<string>(reader["SignedID"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._GroupNO = DataUtils.ConvertValue<string>(reader["GroupNO"]);
            this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(reader["SignUpStudentsSpecialityID"]);
            this._EntretenimientohID = DataUtils.ConvertValue<string>(reader["EntretenimientohID"]);
            this._LotNO = DataUtils.ConvertValue<string>(reader["LotNO"]);
            this._CreateTiime = DataUtils.ConvertValue<DateTime?>(reader["CreateTiime"]);
            this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
            this._State = DataUtils.ConvertValue<int?>(reader["State"]);
            this._SignedTime = DataUtils.ConvertValue<DateTime?>(reader["SignedTime"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._SignedID = DataUtils.ConvertValue<string>(row["SignedID"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._GroupNO = DataUtils.ConvertValue<string>(row["GroupNO"]);
            this._SignUpStudentsSpecialityID = DataUtils.ConvertValue<string>(row["SignUpStudentsSpecialityID"]);
            this._EntretenimientohID = DataUtils.ConvertValue<string>(row["EntretenimientohID"]);
            this._LotNO = DataUtils.ConvertValue<string>(row["LotNO"]);
            this._CreateTiime = DataUtils.ConvertValue<DateTime?>(row["CreateTiime"]);
            this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
            this._State = DataUtils.ConvertValue<int?>(row["State"]);
            this._SignedTime = DataUtils.ConvertValue<DateTime?>(row["SignedTime"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Exam_Signed");
            /// <summary>
            /// 主键
            /// </summary>
            public readonly static Field SignedID = new Field("SignedID", "TB_Exam_Signed", "主键");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Exam_Signed", "考试年度");
            /// <summary>
            /// 分组编码
            /// </summary>
            public readonly static Field GroupNO = new Field("GroupNO", "TB_Exam_Signed", "分组编码");
            /// <summary>
            /// 报考专业主键
            /// </summary>
            public readonly static Field SignUpStudentsSpecialityID = new Field("SignUpStudentsSpecialityID", "TB_Exam_Signed", "报考专业主键");
            /// <summary>
            /// 考务编码
            /// </summary>
            public readonly static Field EntretenimientohID = new Field("EntretenimientohID", "TB_Exam_Signed", "考务编码");
            /// <summary>
            /// 抽签号
            /// </summary>
            public readonly static Field LotNO = new Field("LotNO", "TB_Exam_Signed", "抽签号");
            /// <summary>
            /// 抽签时间
            /// </summary>
            public readonly static Field CreateTiime = new Field("CreateTiime", "TB_Exam_Signed", "抽签时间");
            /// <summary>
            /// 备注
            /// </summary>
            public readonly static Field Remark = new Field("Remark", "TB_Exam_Signed", "备注");
            /// <summary>
            /// 状态(1签到,0进入排队表)
            /// </summary>
            public readonly static Field State = new Field("State", "TB_Exam_Signed", "状态(1签到,0进入排队表)");
            /// <summary>
            /// 
            /// </summary>
            public readonly static Field SignedTime = new Field("SignedTime", "TB_Exam_Signed", "签到时间");
        }
        #endregion


    }
}

